<template>
	<div>
		{{$route.params.id}} --- {{$route.params.name}}
		<template>
			<el-radio v-model="radio" label="1" @change="change('/deptlist')">部门列表</el-radio>
			<el-radio v-model="radio" label="2" @change="change('/deptinfo')">部门介绍</el-radio>
			<el-radio v-model="radio" label="3" @change="change('/u')">去用户页面</el-radio>
		</template>
		<router-view></router-view>
	</div>
</template>

<script>
	export default{
		data(){
			return {
				radio:"2"
			}
		},
		methods:{
			change(url){
				this.$router.push(url);
			}
		}
	}
</script>

<style>

</style>